package com.ge.energy.pgs.myfleet.database.query.base;

import com.ge.energy.pgs.myfleet.database.data.DataInitBean;
import com.ge.energy.pgs.myfleet.database.table.CategoryUserTable;
import com.ge.energy.pgs.myfleet.database.table.ContactCategoryTable;
import com.ge.energy.pgs.myfleet.database.table.ContactTable;
import com.ge.energy.pgs.myfleet.database.table.UserTable;

public class Insert {
public static int a =100120;
public static String[]  createNewUser(){
	a++;
	String p =   String.valueOf( ((int)(Math.random()* 10000)));

	DataInitBean.id$password.put(String.valueOf(a), p);
	DataInitBean.userTable.add(new UserTable(String.valueOf(a), String.valueOf(a), "M", "48_0", "第一次来！", null));
	
	
	
	int currSequence = DataInitBean.contactCategoryTable.size();
	int myFriendSeq = currSequence++;
	int moshengren = currSequence++;
	int heimingdan = currSequence++;
	DataInitBean.contactCategoryTable.add(new ContactCategoryTable(String.valueOf(myFriendSeq), "我的好友", null));
	DataInitBean.contactCategoryTable.add(new ContactCategoryTable(String.valueOf(moshengren), "陌生人", null));
	DataInitBean.contactCategoryTable.add(new ContactCategoryTable(String.valueOf(heimingdan), "黑名单", null));
	
	DataInitBean.contactTable.add(new ContactTable(String.valueOf(a), String.valueOf(myFriendSeq)));
	DataInitBean.categoryUserTable.add(new CategoryUserTable(String.valueOf(myFriendSeq), "110110"));
	DataInitBean.contactTable.add(new ContactTable(String.valueOf(a), String.valueOf(moshengren)));
	DataInitBean.categoryUserTable.add(new CategoryUserTable(String.valueOf(moshengren), "110110"));
	DataInitBean.contactTable.add(new ContactTable(String.valueOf(a), String.valueOf(heimingdan)));
	DataInitBean.categoryUserTable.add(new CategoryUserTable(String.valueOf(heimingdan), "110110"));
	DataInitBean.contactTable.add(new ContactTable(String.valueOf(a), "0"));
	
	String[] r ={String.valueOf(a),p};
	
	return r;
}
}
